/*
 * Unary.cpp
 *
 *  Created on: 16.05.2012
 *      Author: Eugene Kornykhin
 */

#include "Unary.h"

Unary::Unary() {

}

Unary::~Unary() {

}

bool Unary::isHalt() const {
	return false;
}

void Unary::execute(Interpreter & interpreter)
{
	const PElement &x = interpreter.popPolizElement();
	push_operation_result(interpreter, x);
}

PolizPosition Unary::next_position_after(PolizPosition p) const
{
	return p.next();
}
